let Controller = {
  mounted() {
    console.log(this.$route.query.id)
  },
  methods: {
    onSelectChange(type){
      const data = this.Model.sliderSelect[type];
      this.Model.sliderSelect[type].sliderVal = [data.value,data.value];
    },
    goBack() {
      this.$router.back(-1);
    },
    toggleDialog(status) {
      this.Model.outerVisible = status;
    },
    tableDetail(row) {
      this.Model.detailDialogFlag = true;
    },
    warehousing(row) {
      this.Model.warehousingDialogStatus = row.status;
      this.Model.warehousingDialogFlag = true;
    },
    handleSelectionChange(val) {
      console.log(val);
    },
    handleCurrentChange(val) {
      this.Model.pager.params.pageIndex = val;
    },
    handleSizeChange(val) {
      this.Model.pager.params.pageSize = val;
    },
    cardClick(color) {
      this.Model.cardSelected = color;
    },
    showSureBarCode(val) {
      this.Model.searchFromData = val;
    },
    showNotSureBarCodeP1(val){
      this.Model.searchFromData2 = val;
    },
    showNotSureBarCodeP2(val){
      this.Model.searchFromData3 = val;
    },
    toSearchSureBarCode(val) {
      console.log(this.Model.searchFromData)
    },
    toSearchNotSureBarCode(val) {
      console.log(this.Model.searchFromData2,this.Model.searchFromData3)
    },
    toClear(val) {
      this.Model.searchFromData2 = this.Model.defaultSearchFromData2;
      this.Model.searchFromData3 = this.Model.defaultSearchFromData3;
    },
    toExport(val) {
      console.log(val);
    },
    onTabChange(val) {
      console.log(val, this.Model.activeTab)
      switch (val) {
        case 1:
          break;
        case 2:
          break;
        case 3:
          break;
      }
    }
  }
}
export default Controller;
